<template>
  <el-radio-group v-model="model[item.prop]">
    <el-radio
      v-for="(option, index) in item.options"
      :key="index"
      :label="option[item.valueKey || 'value']"
      :disabled="item.disabledKey"
      v-bind="option.bind"
      v-on="item.events || {}"
      >{{ option[item.labelKey || 'label'] }}</el-radio
    >
  </el-radio-group>
</template>

<script setup>
const props = defineProps({
  item: Object,
  model: Object
})
</script>
